package com.dbumama.market.service.provider;

import com.dbumama.market.model.VerifiedInfo;
import com.dbumama.market.service.api.verified.VerifiedService;
import org.springframework.stereotype.Service;


@Service("verifiedService")
public class VerifiedServiceImpl implements VerifiedService {
	private static final VerifiedInfo verifiedInfodao = new VerifiedInfo().dao();


	@Override
	public VerifiedInfo findByIdNum(String idNum) {
		return verifiedInfodao.findFirst("select * from "+VerifiedInfo.table+" where id_num=?",idNum);
	}

	@Override
	public VerifiedInfo findByBuyerId(Long buyerId) {
		return verifiedInfodao.findFirst("select * from "+VerifiedInfo.table+" where buyer_id=?",buyerId);
	}
}
